<template>

  
  <router-view v-slot="{ Component }">
    <transition name="slide" mode="out-in">
      <component :is="Component" />
    </transition>
  </router-view>



</template>
 

<script>

</script>



<style>
/* 向右滑动效果 */
.slide-enter-active,
.slide-leave-active {
  transition: opacity 0.2s ease;
}
.slide-enter-from {

  opacity: 0.9;
}
.slide-leave-to {

  opacity: 0.8;
}
</style>